/*
 * Engine.h
 *
 * Created: 20/03/2012 12:46:19
 *  Author: Dani
 *
 * Use of Timer0
 */ 


#define ENGINE_DDR	DDRA
#define ENGINE_PORT PORTA
#define ENGINE1		0b10000000
#define ENGINE2		0b01000000
#define ENGINE3		0b00100000
#define ENGINE4		0b00010000
#define ENGINE5		0b00001000
#define ENGINE_ALL	0b11111000

#define SPEED_MAX 255
#define SPEED_25 64
#define SPEED_50 128
#define SPEED_75 192
#define SPEED_0 0

void EngineInit();
void EngineControl(uint8_t engine_num, uint8_t speed);
//void EnginePWMEnable(unsigned char enable);